/* Utility functions for smart contracts */

// Generate an RSA keypair of given length
void generate_rsa_keys(int len, unsigned char *priv_key, unsigned char *pub_key);

// Generates a new bitcoin address
void generate_bitcoin_address(unsigned char *priv_key, unsigned char *addr);

// Verifies that the POSTED_DATA is indeed posted to the bulletin board, where
// PROOF is the contents returned by the bulletin board.
void verify_bulletin_board(unsigned char *proof, unsigned char *posted_data);
